package com.shop.shop_end.variable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {
    NO_TOKEN(401, "token过期"),
    NO_PAGE(404, "找不到页面"),//找不到页面
    SQL_INSERT_ERROR(211, "数据库插入错误"),
    SQL_DELETE_ERROR(212, "数据库删除错误"),
    SQL_UPDATE_ERROR(213, "数据库更新错误"),
    SQL_QUERY_ERROR(214, "数据库查询错误"),
    PARAMS_ERROR(215, "参数错误");

    private final Integer code;//状态码
    private final String msg;//文字描述
}
